package com.iring.service.common;

import com.iring.domain.common.DeviceTrunk;

/**
 * @author wanggan
 */
public interface DeviceTrunkService {

    /**
     * 保存mac和账号
     * 
     * @param deviceTrunk
     *            {@link DeviceTrunk}
     * @return {@link DeviceTrunk}
     */
    DeviceTrunk save(DeviceTrunk deviceTrunk);

    /**
     * 通过mac和账号进行查找
     * 
     * @param mac
     *            mac
     * @param username
     *            用户名
     * @return {@link DeviceTrunk}
     */
    DeviceTrunk findByMacAndUsername(String mac, String username);

}
